import {request} from '@/common/js/request.js'

// 获得农事咨询分页
export function getConsultationList(data) {
  return request({
    url: '/app-api/farmer/consultation/page',
    method: 'get',
	data
  })
}

// 创建农事咨询
export function postConsultation(data) {
  return request({
    url: '/app-api/farmer/consultation/create',
    method: 'post',
	data
  })
}

// 更改农事咨询状态
export function putConsultation(data) {
  return request({
    url: '/app-api/farmer/consultation/update',
    method: 'put',
	data
  })
}